import request from '@/utils/request';
// 患者列表
export const patientList = params => request({
    url: '/business/patient/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配列表
export const patientDistrList = params => request({
    url: '/business/patient/distribution/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者所有列表
export const patientListAll = params => request({
    url: '/business/patient/allList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者添加
export const patientAdd = params => request({
    url: '/business/patient/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者详情
export const patientDetail = params => request({
    url: '/business/patient/get',
    method: 'GET',
    params
});
// 患者修改
export const patientUpdate = params => request({
    url: '/business/patient/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者基础更新
export const patientUpdateBase = params => request({
    url: '/business/patient/updateBase',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者导出
export const patientExport = params => request({
    url: '/business/patient/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 根据手机号查询保护期信息
export const getProtectInfo = params => request({
    url: '/business/patient/getProtectInfo',
    method: 'GET',
    params
});

// 患者转移到当前人名下
export const getProtectChange = params => request({
    url: '/business/patient/change',
    method: 'GET',
    params
});

// export const dictionary = params => request({
//     url: '/admin/CustomerDict/dict',
//     method: 'GET',
//     params
// }).then(({ data }) => {
//     return data;
// });

// 分配
export const distribution = params => request({
    url: '/business/patient/distribution',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 分配
export const addPublic = params => request({
    url: '/business/patient/addPublic',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 邀约
export const patientInvite = params => request({
    // url: '/business/patient/invite',
    url: '/business/Record/Participation/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------患者会员---------------------
// 患者会员信息保存
export const patientMemberSave = params => request({
    url: '/business/patientMember/save',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者会员信息详情
export const patientMemberDetail = params => request({
    url: '/business/patientMember/get',
    method: 'GET',
    params
});
// ---------------------患者进度记录---------------------
// 患者患者进度记录
export const speedProgressList = params => request({
    url: '/business/Record/SpeedProgress/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------参班记录---------------------
// 患者参班记录列表
export const participationList = params => request({
    url: '/business/Record/Participation/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者参班记录更新
export const participationUpdate = params => request({
    url: '/business/Record/Participation/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者参班记录导出
export const participationExport = params => request({
    url: '/business/Record/Participation/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 参班列表陪同参班或参班状态变更
export const participationAccompanied = params => request({
    url: '/business/Record/Participation/accompanied',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 参班列表更换课程
export const participationCurriculum = params => request({
    url: '/business/Record/Participation/curriculum',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 参班列表签到
export const participationSign = params => request({
    url: '/business/Record/Participation/sign',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 获取邀约签到信息
export const participationSignNum = params => request({
    url: '/business/Record/Participation/signNum',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 参班列表检测
export const participationCheck = params => request({
    url: '/business/Record/Participation/check',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 获取参班操作
export const participationRecord = params => request({
    url: '/business/Record/Participation/selectDetail',
    method: 'GET',
    params
});

// 参班列表赠品发放
export const updategift = params => request({
    url: '/business/Record/Participation/updategift',
    method: 'POST',
    data: params
});

// 获取当前备注节点
export const getRemark = params => request({
    url: '/business/Record/Participation/getRemark',
    method: 'GET',
    params
});

// 记录备注节点原因
export const inRemark = params => request({
    url: '/business/Record/Participation/inRemark',
    method: 'POST',
    data: params
});

// ---------------------挂号记录---------------------
// 患者挂号记录列表
export const registerList = params => request({
    url: '/business/Record/Register/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------理疗记录---------------------
// 患者理疗记录列表
export const physioList = params => request({
    url: '/business/execute/physiotherapyRecord',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者理疗记录导出
export const physioExport = params => request({
    url: '/business/Record/Physio/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------分配记录---------------------
// 患者分配记录列表
export const distributionList = params => request({
    url: '/business/Record/Distribution/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配记录新增
export const distributionAdd = params => request({
    url: '/business/Record/Distribution/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配记录更新
export const distributionUpdate = params => request({
    url: '/business/Record/Distribution/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配记录导出
export const distributionExport = params => request({
    url: '/business/Record/Distribution/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配记录删除
export const distributionDel = params => request({
    url: '/business/Record/Distribution/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者分配详情
export const distributionDetail = params => request({
    url: '/business/Record/Distribution/get',
    method: 'GET',
    params
});
// ---------------------变更记录---------------------
// 患者变更记录列表
export const changeList = params => request({
    url: '/business/Record/Change/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者变更记录导出
export const changeListExport = params => request({
    url: '/business/Record/Change/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------回访记录---------------------
// 患者回访记录列表
export const returnvisitList = params => request({
    url: '/business/Record/ReturnVisit/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者回访记录新增
export const returnvisitAdd = params => request({
    url: '/business/Record/ReturnVisit/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者回访记录更新
export const returnvisitUpdate = params => request({
    url: '/business/Record/ReturnVisit/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者回访记录导出
export const returnvisitExport = params => request({
    url: '/business/Record/ReturnVisit/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者回访详情
export const returnvisitDetail = params => request({
    url: '/business/Record/ReturnVisit/get',
    method: 'GET',
    params
});
// 患者回访删除
export const returnvisitdel = params => request({
    url: '/business/Record/ReturnVisit/del',
    method: 'GET',
    params
});
// ---------------------礼品记录---------------------
// 患者礼品记录列表
export const giftList = params => request({
    url: '/business/Record/Gift/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者礼品记录新增
export const giftAdd = params => request({
    url: '/business/Record/Gift/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者礼品记录修改
export const giftUpdate = params => request({
    url: '/business/Record/Gift/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者礼品详情
export const giftDetail = params => request({
    url: '/business/Record/Gift/get',
    method: 'GET',
    params
});
// 患者礼品删除
export const giftDel = params => request({
    url: '/business/Record/Gift/del',
    method: 'GET',
    params
});
// 患者礼品删除
export const giftExport = params => request({
    url: '/business/Record/Gift/export',
    method: 'post',
    data: params
});

// ---------------------检验记录---------------------
// 患者检验记录列表
export const inspectionList = params => request({
    url: '/business/Record/Inspection/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者检验记录新增
export const inspectionAdd = params => request({
    url: '/business/Record/Inspection/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者检验记录修改
export const inspectionUpdate = params => request({
    url: '/business/Record/Inspection/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者检验记录导出
export const inspectionExport = params => request({
    url: '/business/Record/Inspection/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者检验记录删除
export const inspectionDel = params => request({
    url: '/business/Record/Inspection/del',
    method: 'GET',
    params
});
// 患者检验记录详情
export const inspectionDetail = params => request({
    url: '/business/Record/Inspection/get',
    method: 'GET',
    params
});
// ---------------------会诊记录---------------------
// 患者会诊记录列表
export const consultationList = params => request({
    url: '/business/Record/Consultation/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者会诊记录新增
export const consultationAdd = params => request({
    url: '/business/Record/Consultation/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者会诊记录修改
export const consultationUpdate = params => request({
    url: '/business/Record/Consultation/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者会诊记录导出
export const consultationExport = params => request({
    url: '/business/Record/Consultation/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者者会诊记录删除
export const consultationDel = params => request({
    url: '/business/Record/Consultation/del',
    method: 'GET',
    params
});
export const getConsultation = params => request({
    url: '/business/Record/Consultation/get',
    method: 'GET',
    params
});

// ---------------------跟踪记录---------------------
// 患者跟踪记录列表
export const trackList = params => request({
    url: '/business/Record/Track/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者跟踪记录新增
export const trackAdd = params => request({
    url: '/business/Record/Track/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者跟踪记录修改
export const trackuUpdate = params => request({
    url: '/business/Record/Track/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者跟踪记录导出
export const trackuExport = params => request({
    url: '/business/Record/Track/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者跟踪记录删除
export const trackuDel = params => request({
    url: '/business/Record/Track/del',
    method: 'GET',
    params
});
// 患者跟踪记录详情
export const getTrackDetail = params => request({
    url: '/business/Record/Track/get',
    method: 'GET',
    params
});

// ---------------------看诊记录---------------------
// 患者看诊记录列表
export const seeingList = params => request({
    url: '/business/Record/Seeing/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者看诊记录新增
export const seeingAdd = params => request({
    url: '/business/Record/Seeing/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者看诊记录详情
export const getSeeing = params => request({
    url: '/business/Record/Seeing/get',
    method: 'GET',
    params
});
// 患者看诊记录修改
export const seeingUpdate = params => request({
    url: '/business/Record/Seeing/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者看诊记录导出
export const seeingExport = params => request({
    url: '/business/Record/Seeing/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划列表获取患者近10条看诊记录
export const seeingListphysio = params => request({
    url: '/business/Record/Seeing/listphysio',
    method: 'POST',
    params
});
// 患者看诊记录删除
export const seeingDel = params => request({
    url: '/business/Record/Seeing/del',
    method: 'GET',
    params
});
// 通过已诊挂号单号获取看诊单
export const getDiagnosed = params => request({
    url: '/business//Record/Seeing/getDiagnosed',
    method: 'GET',
    params
});
// ---------------------订购记录---------------------
// 患者订购记录列表
export const orderList = params => request({
    url: '/business/Record/Order/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购记录新增
export const orderAdd = params => request({
    url: '/business/Record/Order/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购记录修改
export const orderUpdate = params => request({
    url: '/business/Record/Order/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购记录导出
export const orderExport = params => request({
    url: '/business/Record/Order/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购记录获取订单详情
export const orderGetDetail = params => request({
    url: '/business/Record/Order/getDetail',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购记录获取用户订购单号
export const orderGetOrderID = params => request({
    url: '/business/Record/Order/getOrderID',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者订购详情
export const orderDetail = params => request({
    url: '/business/Record/Order/get',
    method: 'GET',
    params
});
// 患者订购删除
export const orderDel = params => request({
    url: '/business/Record/Order/del',
    method: 'GET',
    params
});
// ---------------------下方记录---------------------
// 患者下方记录列表
export const prescribingList = params => request({
    url: '/business/Record/Prescribing/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者下方记录新增
export const prescribingAdd = params => request({
    url: '/business/Record/Prescribing/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者下方记录修改
export const prescribingUpdate = params => request({
    url: '/business/Record/Prescribing/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者下方记录导出
export const prescribingExport = params => request({
    url: '/business/Record/Prescribing/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 患者下方记录详情
export const prescribingDetail = params => request({
    url: '/business/Record/Prescribing/get',
    method: 'GET',
    params
});
// 患者下方记录删除
export const prescribingDel = params => request({
    url: '/business/Record/Prescribing/del',
    method: 'GET',
    params
});
// ---------------------存药记录---------------------
// 存药记录列表
export const inventoryList = params => request({
    url: '/business/Record/Inventory/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 存药记录导出
export const inventoryExportt = params => request({
    url: '/business/Record/Inventory/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 获取存药套餐
export const getPackage = params => request({
    url: '/business/Record/Inventory/getPackage',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// ---------------------缴费记录---------------------
// 缴费记录列表
export const payCostList = params => request({
    url: '/business/Record/PayCost/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 缴费记录导出
export const payCostExport = params => request({
    url: '/business/Record/PayCost/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 缴费记录新增
export const payCostAdd = params => request({
    url: '/business/Record/PayCost/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 缴费记录更新
export const payCostUpdate = params => request({
    url: '/business/Record/PayCost/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 缴费记录详情
export const paycostGet = params => request({
    url: '/business/Record/PayCost/get',
    method: 'GET',
    params
});
// 缴费记录删除
export const paycostDel = params => request({
    url: '/business/Record/PayCost/del',
    method: 'GET',
    params
});
// ---------------------退款记录---------------------
// 退款记录列表
export const refundList = params => request({
    url: '/business/Record/Refund/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退款记录导出
export const refundExport = params => request({
    url: '/business/Record/Refund/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退款记录新增
export const refundAdd = params => request({
    url: '/business/Record/Refund/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退款记录更新
export const refundUpdate = params => request({
    url: '/business/Record/Refund/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退款记录详情
export const refundGet = params => request({
    url: '/business/Record/Refund/get',
    method: 'GET',
    params
});
// ---------------------调换记录---------------------
// 调换记录列表
export const exchangeList = params => request({
    url: '/business/Record/Exchange/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 调换记录导出
export const exchangeExport = params => request({
    url: '/business/Record/Exchange/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 调换记录新增
export const exchangeAdd = params => request({
    url: '/business/Record/Exchange/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 调换记录更新
export const exchangeUpdate = params => request({
    url: '/business/Record/Exchange/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 调换记录详情
export const exchangeGet = params => request({
    url: '/business/Record/Exchange/get',
    method: 'GET',
    params
});

// ---------------------标签管理---------------------
// 标签管理列表
export const patientLabelList = params => request({
    url: '/business/patientLabel/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 标签管理新增
export const patientLabelAdd = params => request({
    url: '/business/patientLabel/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 标签管理更新
export const patientLabelUpdate = params => request({
    url: '/business/patientLabel/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 标签管理删除
export const patientLabelDel = params => request({
    url: '/business/patientLabel/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 标签管理下拉列表
export const patientLabelAllList = params => request({
    url: '/business/patientLabel/allList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 黑名单
export const updateBase = params => request({
    url: '/business/patient/updateBase',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
